//
// Created by zhu on 25-8-30.
//
#include <iostream>

int main() {
    int sum = 0;
    // sum values from 1 through 10 inclusive
    for (int val = 1; val <= 10; ++val)
        sum += val; // equivalent to sum = sum + val
    std::cout << "Sum of 1 to 10 inclusive is "
            << sum << std::endl;
    return 0;
}
